package com.qst.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qst.order.domain.OrderPay;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.math.BigDecimal;

@Mapper
public interface OrderPayMapper extends BaseMapper<OrderPay> {


    //插入退款金额
   @Insert("insert into t_order_pay(user_id,order_no,pay_money,pay_type,pay_time) " +
           "values(#{userId},#{orderNo},#{totalPrice},#{payType},now())")
    boolean refund(Integer userId, String orderNo, BigDecimal totalPrice,String payType);
}
